package work.mediway.mdm.biz.dto.biz;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/3/19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class SsFieldPermDTO extends SsTablePermDTO {

    @ApiModelProperty(value = "字段代码", position = 9)
    private String ssFieldParam;

    public static SsFieldPermDTO build(String ssTableParam, String userId, String roleId) {
        SsFieldPermDTO fieldPermDTO = new SsFieldPermDTO();
        fieldPermDTO.setSsTableParam(ssTableParam);
        fieldPermDTO.setUserId(userId);
        fieldPermDTO.setRoleId(roleId);
        return fieldPermDTO;
    }


}
